package test.test1.mybatis.dao;

import java.util.List;

import test.test1.mybatis.pojo.Question;

public interface QuestionMapper {
	List<Question> selectAllQuestion();
	List<Question> selectQuestionsByPid(Integer pid);
	Question selectQuestionById(Integer id);
	List<Question> selectOpenQuestions();
	List<Question> searchQuestions(String value);
	
	int insertQuestion(Question question);
	int closeQuestion(Integer id);
}
